<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        body{
            print-color-adjust: exact;
            -webkit-print-color-adjust: exact;
        }

        table {
            border-collapse: collapse;
            width: 100%;
            box-decoration-break: clone;
        }
        th, td {
            text-align: left;
            padding: 8px;
            border: 1px solid #000;
        }
        tr:nth-child(even){background-color: #f2f2f2}
        th {
            background-color: #4CAF50;
            color: white;
        }
        tr {
            height: 50px;
        }

        body {
            position: relative;
        }
    </style>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>班级</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tr>
            <td>1</td>
            <td>张三</td>
            <td>男</td>
            <td>20</td>
        </tr>
        <tr>
            <td>2</td>
            <td>李四</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>3</td>
            <td>王五</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>赵六</td>
            <td>男</td>
            <td>23</td>
        </tr>
        <tr>
            <td>5</td>
            <td>钱七</td>
            <td>男</td>
            <td>24</td>
        </tr>
        <tfoot>
            <tr>
                <td>合计</td>
                <td>-</td>
                <td>-</td>
                <td>24</td>
            </tr>
        </tfoot>
    </table>
    
</body>
</html>